<?php

class advertise_model extends admin_model {

    public function __construct() {
        parent::__construct();
        $this->table = 'advertises';
        $this->select = array('user.username ', 'advertises.* ');
        $this->join = array(
            'user' => 'user.id = advertises.user_add'
        );
        $this->where = array('advertises.type' => 'ads');
    }

}
